package com.ruoyi.finance.mapper;

import com.ruoyi.IndexDtoByThree;
import com.ruoyi.finance.dto.IndexReceiveOrderDto;
import com.ruoyi.system.api.domain.finance.ReciveOrder;

import java.util.List;

/**
 * 财务收款单Mapper接口
 *
 * @author wl
 * @date 2024-11-02
 */
public interface ReciveOrderMapper {
    /**
     * 查询财务收款单
     *
     * @param id 财务收款单主键
     * @return 财务收款单
     */
    public ReciveOrder selectReciveOrderById(Integer id);
    public IndexReceiveOrderDto getSaleOrderReciveCountAndMoney();
    public IndexReceiveOrderDto getBuyBackReciveOrderCountAndMoney();
    public IndexDtoByThree getReceiveOrderThreeCountToIndex();
    /**
     * 查询财务收款单列表
     *
     * @param reciveOrder 财务收款单
     * @return 财务收款单集合
     */
    public List<ReciveOrder> selectReciveOrderList(ReciveOrder reciveOrder);

    /**
     * 新增财务收款单
     *
     * @param reciveOrder 财务收款单
     * @return 结果
     */
    public int insertReciveOrder(ReciveOrder reciveOrder);

    /**
     * 修改财务收款单
     *
     * @param reciveOrder 财务收款单
     * @return 结果
     */
    public int updateReciveOrder(ReciveOrder reciveOrder);

    /**
     * 删除财务收款单
     *
     * @param id 财务收款单主键
     * @return 结果
     */
    public int deleteReciveOrderById(Integer id);

    /**
     * 批量删除财务收款单
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteReciveOrderByIds(Integer[] ids);

    int selectReciveOrderCountByOrderCode(String orderCode);

    ReciveOrder selectReciveOrderByOrderCode(String orderCode);

    int updateReciveOrderByOrderCode(ReciveOrder reciveOrder);

    int updateReciveOrderByOrderCodeOfVerMoney(ReciveOrder reciveOrder);
}
